package com.dev.bbs.domain;

import javax.persistence.Id;
import javax.persistence.Transient;

import com.dev.common.annotation.Excel;
import com.dev.common.core.domain.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.KeySql;

/**
 * 帖子评论对象 bbs_comment
 * 
 * @author dev
 * @date 2019-09-23
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class BbsComment extends BaseEntity
{
    //
    private static final long serialVersionUID = 5672932997056764449L;

    /** 评论编号 */
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long              mentId;

    /** 文章编号 */
    @Excel(name = "文章编号")
    private Long              artId;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String            artTitle;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String            content;

    /** 采纳 */
    @Excel(name = "采纳")
    private Boolean           accept;

    /** 点赞数量 */
    @Excel(name = "点赞数量")
    private Long              likenum;

    /** 作者id */
    @Excel(name = "作者id")
    private Long              author;

    /** 作者信息*/
    @Transient
    private BbsUser           bbsUser;
}
